//
// Created by Administrator on 2021/5/22.
// @file simple_operation.h
// @author jmdvirus
// @date $YEAR-$MONTH-22 12:56:09
//

#ifndef C_SIMPLE_OPERATION_H
#define C_SIMPLE_OPERATION_H

#include "OpencvDemoBase.h"
#include "SimpleFunction.h"

class SimpleOperation : public OpencvDemoBase
{
public:

    int Run(int argc, char**args);

private:

    void TestDetect(const cv::Mat &img);

    cv::Mat RemoveLight(cv::Mat &img, cv::Mat pattern, int method);
    cv::Mat CalculateLightPattern(cv::Mat &img);
    int TestRemoveLight(cv::Mat &img);

    cv::Mat WaveImg(cv::Mat &img);
    int TestWaveImg(cv::Mat &img);

    int TestGrabImage(cv::Mat &img);
    int TestImageHSV(cv::Mat &img);

    int TestEquist(cv::Mat &img);

    int TestRevert(cv::Mat &img);

    int TestErode(cv::Mat &img);

    int TestBig(cv::Mat &img);

    int TestOneImage(cv::Mat &img);

    int TestUnknow(cv::Mat &img);

    SimpleFunction simpleFunction;
};


#endif //C_SIMPLE_OPERATION_H
